Properties
Link copied to clipboard
Returns the document HTML element that usually represents HTML tag, if any.
Link copied to clipboard
Returns the currently focused element in the document, if any.
Link copied to clipboard
Returns the next node in the document tree, if any.
Link copied to clipboard
Returns the previous node in the document tree, if any.
Link copied to clipboard
Returns XPathExpression that represents path to this Node, or an empty expression if it is not available.
Functions
Link copied to clipboard
Adds the given
listener
to the event target.Link copied to clipboard
Adds the given
node
as a child of the current node to the end of its children list.Link copied to clipboard
Compares position of the current node against another node in a DOM tree.
Link copied to clipboard
Link copied to clipboard
Creates and returns a new DOM element with the given
tagName
.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates and returns a new
MouseEvent
object with the given eventType
and params
.Link copied to clipboard
Creates and returns a new
WheelEvent
object with the given eventType
and params
.Link copied to clipboard
Returns an
Optional
that contains the document HTML element that usually represents HTML tag, otherwise an empty Optional
if the document element is not available.Link copied to clipboard
Evaluates the given XPath
expression
for the node and returns the XPathResult
of the ANY type.Evaluates the given XPath
expression
for the node and returns the XPathResult
object of the given type
.Link copied to clipboard
Evaluates the given expression for the node and returns XPathResult of the XPathResultType.ANY type.
Evaluates the given expression for the node and returns XPathResult of the given type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the first Element found in the current search context by the given cssSelector, if any.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the first Element object found in the current search context by the given
className
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
id
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
name
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
tagName
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
className
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
id
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
name
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
tagName
.Link copied to clipboard
Returns an
Optional
that contains the currently focused element in the document, otherwise an empty Optional
if there is no focused element in this document.Link copied to clipboard
Link copied to clipboard
Returns the first Element found in the current search context by the given cssSelector.
Link copied to clipboard
Link copied to clipboard
Inserts the given
node
before the given beforeNode
as a child of the current node.Link copied to clipboard
Returns an
Optional
that contains the next node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Returns an
Optional
that contains the previous node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Removes the given
childNode
of the current node from the DOM.Link copied to clipboard
abstract fun removeEventListener(eventType: EventType, listener: Observer<Event>, useCapture: Boolean)
Removes the given
listener
from the event target.Link copied to clipboard
Replaces the given child
oldNode
of the current node with the given newNode
.Link copied to clipboard
Returns the text content of the current node and its descendants.
Removes all the current node children and replaces them with a single text node with the given
textContent
.